Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraphQL endpoint to interact with the application layer #52

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhiben
Copy link
Owner

@jhiben jhiben commented Nov 14, 2024

Fixes #11

Add GraphQL endpoint to interact with the application layer.

  • GraphQL Schema and Queries

    • Add WorkoutRecordsSchema.cs to define the GraphQL schema.
    • Add WorkoutRecordsQuery.cs to implement the root query for fetching workout records.
    • Add WorkoutRecordsMutation.cs to implement the root mutation for creating workout records.
  • GraphQL Types

    • Add MovementType.cs to define the GraphQL type for the Movement domain model.
    • Add WorkoutType.cs to define the GraphQL type for the Workout domain model.
    • Add WorkoutMovementType.cs to define the GraphQL type for the WorkoutMovement domain model.
    • Add WorkoutRecordType.cs to define the GraphQL type for the WorkoutRecord domain model.
  • Startup Configuration

    • Add Startup.cs to configure GraphQL services and middleware.

For more details, open the Copilot Workspace session.

Fixes #11

Add GraphQL endpoint to interact with the application layer.

* **GraphQL Schema and Queries**
  - Add `WorkoutRecordsSchema.cs` to define the GraphQL schema.
  - Add `WorkoutRecordsQuery.cs` to implement the root query for fetching workout records.
  - Add `WorkoutRecordsMutation.cs` to implement the root mutation for creating workout records.

* **GraphQL Types**
  - Add `MovementType.cs` to define the GraphQL type for the `Movement` domain model.
  - Add `WorkoutType.cs` to define the GraphQL type for the `Workout` domain model.
  - Add `WorkoutMovementType.cs` to define the GraphQL type for the `WorkoutMovement` domain model.
  - Add `WorkoutRecordType.cs` to define the GraphQL type for the `WorkoutRecord` domain model.

* **Startup Configuration**
  - Add `Startup.cs` to configure GraphQL services and middleware.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jhiben/workout-records-api-dotnet/issues/11?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GraphQL endpoint to interact with the application layer
1 participant